package com.probiz.estore.eai.customerclass;

import java.util.List;

import javax.xml.bind.JAXBElement;

import com.probiz.estore.eai.common.GenericMarshaller;
import com.probiz.estore.eai.customerclass.generated.CustomerClass;
import com.probiz.estore.eai.customerclass.generated.CustomerClassSet;
import com.probiz.estore.eai.customerclass.generated.ObjectFactory;
import com.probiz.estore.eai.exception.EaiException;



public class CustomerClassMarshaller extends GenericMarshaller<CustomerClassSet>{	

	@Override
	public JAXBElement<CustomerClassSet> populateEntitySetElement()
			throws EaiException {
		ObjectFactory factory = new ObjectFactory();

		CustomerClassSet customerClassSet = factory.createCustomerClassSet();
		customerClassSet.setRoottag("customerClass");

		List<CustomerClass> customerClassList = customerClassSet.getCustomerclass();
		
		CustomerClass customerClass = factory.createCustomerClass();
		customerClass.setCode("0001");
		customerClass.setName("test");
		customerClassList.add(customerClass);
		
		


		JAXBElement<CustomerClassSet> customerClassDataElement=factory.createUfinterface(customerClassSet);
	
		return customerClassDataElement;
		
	}

	
	
}
